package com.itheima.d16_extengds_constructor2;

public class Test {
    public static void main(String[] args) {
        //目标：

        Teacher t = new Teacher();
        t.setName("播妞");
        t.setAge(22);
        t.setSkill("程序员鼓励师，哄大家写代码");
        System.out.println(t.getName());
        System.out.println(t.getAge());
        System.out.println(t.getSkill());

        Teacher t1 = new Teacher("Dlei",34,"Java，吹牛");//这里要求子类里必须有个有参构造器
        System.out.println(t1.getName());
        System.out.println(t1.getAge());
        System.out.println(t1.getSkill());
    }
}
